package user

import (
	"github.com/gin-gonic/gin"
	"shop-api/internal/api"
	"shop-api/middleware"
)

func User(r *gin.Engine) {
	u := r.Group("user")
	u.POST("/login", api.Login)
	u.POST("/register", api.Register)
	u.POST("/forget/pwd", api.ForgetPwd)

	u.Use(middleware.VerifyToken)
	u.POST("/update", api.UpdateUser)
}
